﻿package com.speaktoitcookbook.bean;

import java.util.List;

/**
 * 菜谱详细内容实体，包括菜谱、原料、步骤
 * 
 * @author 赛艳志 杨强
 * 
 */
public class CookbookDetail {
    private List<DishStep> steps;
    private List<Material> materials;
    private Cookbook cookbook;

    public CookbookDetail() {
        this.cookbook = new Cookbook();
        this.steps = null;
        this.materials = null;
    }

    /**
     * 指定参数创建完整菜谱
     * 
     * @param cookbook
     *            菜谱
     * @param materials
     *            原料
     * @param steps
     *            做法步骤
     */
    public CookbookDetail(Cookbook cookbook, List<Material> materials,
            List<DishStep> steps) {
        this.cookbook = cookbook;
        this.materials = materials;
        this.steps = steps;
    }

    /**
     * 获取做法步骤
     * 
     * @return 做法步骤
     */
    public List<DishStep> getSteps() {
        return steps;
    }

    /**
     * 设置做法步骤
     * 
     * @param steps
     *            做法步骤
     */
    public void setSteps(List<DishStep> steps) {
        this.steps = steps;
    }

    /**
     * 获取原料
     * 
     * @return 原料
     */
    public List<Material> getMaterials() {
        return materials;
    }

    /**
     * 设置原料
     * 
     * @param materials
     *            原料
     */
    public void setMaterials(List<Material> materials) {
        this.materials = materials;
    }

    /**
     * 获取菜谱
     * 
     * @return 菜谱
     */
    public Cookbook getCookbook() {
        return cookbook;
    }

    /**
     * 设置菜谱
     * 
     * @param cookbook
     *            菜谱
     */
    public void setCookbook(Cookbook cookbook) {
        this.cookbook = cookbook;
    }
}
